package com.mh.pojo;


import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

//导入Excel表
@Data
@ExcelTarget("emps")
public class Emp implements Serializable {

    //@Excel注解的name属性名必须要跟Excel表中的字段名称一致

    @Excel(name = "编号")
    private String id;
    @Excel(name = "姓名")
    private String name;
    @Excel(name = "年龄")
    private String age;

    //format属性格式必须跟Excel表中格式一致
    @Excel(name = "生日", format = "yyyy年MM月dd日")
    private Date birthday;

    @Excel(name = "状态", replace = {"激活_1","未激活_0"})
    private String status;

    //savePa图片导入后存储的位置
    @Excel(name = "头像信息", type = 2, savePath = "D:\\JAVACODE\\HeJiaYun\\EasyPOI_Boot\\src\\main\\resources\\static")
    private String photo;
}
